• check_customer_details.php
  • project /
1 <?php
2 include
"db.php";
3
4 $line = $db->queryUniqueObject(
"SELECT * FROM customer_details WHERE customer_name='".$_POST['stock_name1']."'");
5 $address=$line->customer_address;
6 $contact1=$line->customer_contact1;
7 $contact2=$line->customer_contact2;

8
9 if
($line!=NULL)
10 {
11
12 $arr = array (
"address"=>"$address","contact1"=>"$contact1","contact2"=>"$contact2");
13 echo json_encode($arr);
14
15 }

16 else

17 {
18 $arr1 = array (
"no"=>"no");
19 echo json_encode($arr1);
20
21 }
22 ?>


Gõ tìm kiếm nhanh...